<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>箭头符号</title>
</head>
<body>
<script>
    function f() {

    }
    const a = function () {
        console.log("匿名函数！");
    }
    a();
    const a1 = () =>{
        console.log("匿名函数1！");
    }
    a1();
    const a2 = function (name) {
        console.log(name);
    }
    const a2 =  name => {//可去掉function和小括号，如果只有一个参数的话
        console.log(name);
    }
    const sum = (a,b) => a + b;

    //face => `${face}:${bets[face]}
    // function (face) {
    //     ${face}:${bets[face]}
    // }

</script>
</body>
</html>